/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlinganhang.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author phamduong
 */
public class DrawMoneyDAO {
    
    /**
     * Get money draw from account
     * @param accId
     * @return
     * @throws SQLException
     * @throws ClassNotFoundException 
     */
    public static ArrayList getDrawMoney(String accId) throws SQLException, ClassNotFoundException{
        List<Parameter> sqlParams = new ArrayList<>();
        sqlParams.add(new Parameter("SoTaiKhoan", accId));
        return SqlDAOHelper.ExecuteQuery("DsRutTien", sqlParams);
    }
}
